package com.cndongtai.dao.inter;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cndongtai.po.LightStatusRecord;

public interface LightStatusRecordMapper {

	public boolean addLightStatus(LightStatusRecord status);
	
	public List<LightStatusRecord> queryLightStatusRecordList(@Param(value="userId") Long userId, @Param(value="lightNum") String lightNum, @Param(value="panId") String panId);
	
	public LightStatusRecord queryLightLatestStatusRecord(@Param(value="userId") Long userId, @Param(value="lightId") String lightId);
	
	public List<LightStatusRecord> queryLightStatusRecordListByLightId(String startTime, String endTime, Long lightId);
	
	public int queryLightChargeCountByUserId(Long userId);
	
	public int queryLightStatusRecordListCount(Map<String,Object> parms);
	
	public List<LightStatusRecord> queryLightStatusRecordListPage(Map<String,Object> parms);
	
}
